import request from '@/utils/request'

const api = {
  headLine: '/homePage/headLine',
  electicReport: '/homePage/electicReport',
  hydrogenReport: '/homePage/hydrogenReport',
  heatReport: '/homePage/heatReport',
}


/**
 *
 * @description 顶部
 * @param parameter
 * @returns {*}
 */
export function headLine (parameter) {
  return request({
    url: api.headLine,
    method: 'get',
    params: parameter
  })
}


/**
 *
 * @description 电气
 * @param parameter
 * @returns {*}
 */
export function electicReport (parameter) {
  return request({
    url: api.electicReport,
    method: 'get',
    params: parameter
  })
}


/**
 *
 * @description 氢能
 * @param parameter
 * @returns {*}
 */
export function hydrogenReport (parameter) {
  return request({
    url: api.hydrogenReport,
    method: 'get',
    params: parameter
  })
}


/**
 *
 * @description 暖通
 * @param parameter
 * @returns {*}
 */
export function heatReport (parameter) {
  return request({
    url: api.heatReport,
    method: 'get',
    params: parameter
  })
}
